<template>
    <div>
        <Row :gutter="16">

            <Col :xs="24" :md="24">
                <Button type="primary" @click="publish()">发布站点</Button>
            </Col>

        </Row>




    </div>
</template>

<script>

    import AppFrame from '../../libs/app-frame';

    export default {

        data: function() {
            return {
                state: { //数据加载状态
                    isLoadingData: false,
                    isChangeData: false
                },
                query:{}
            }
        },
        created: function() {
            this.query = this.$route.query;
            this.getFormData();
        },
        methods: {
           async publish(){
              let ret = await  AppFrame.Http.Post("/manage-api/cms/site-publish/publish");
              if(ret && ret.Result==1){
                  this.$Message.success('发布成功');
              }
            }
        }
    }
</script>

<style scoped>

</style>
